package com.itheima.methoddemo;

public class Methoddemo4 {
    public static void main(String[] args) {

        sum((byte)3,(byte)4);
    }

    public static void sum(long a, long b) {
        if (a == b) {
            System.out.println("两个整数相同");
        } else {
            System.out.println("两个整数不相同");
        }
    }

    public static void sum(int a, int b) {
        if (a == b) {
            System.out.println("两个整数相同");
        } else {
            System.out.println("两个整数不相同");
        }
    }

    public static void sum(short a, short b) {
        if (a == b) {
            System.out.println("两个整数相同");
        } else {
            System.out.println("两个整数不相同");
        }
    }

    public static void sum(byte a, byte b) {
        if (a == b) {
            System.out.println("两个整数相同");
        } else {
            System.out.println("两个整数不相同");
        }
    }


}
